<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('日分润汇总列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                服务商编号：
                                <input type="text" name="agentNum"/>
                            </li>
                            <li>
                                服务商名称：
                                <input type="text" name="agentName"/>
                            </li>
                            <li>
                                <label>销售经理：</label>
                                <input type="text" name="channelName"/>
                            </li>
                            <li class="select-time">
                                <label >交易日期：</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始日期" name="params[beginAddTime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束日期" name="params[endAddTime]"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('profitSummary:profitSummary:edit')}]];
        var removeFlag = [[${@permission.hasPermi('profitSummary:profitSummary:remove')}]];
        var prefix = ctx + "profitSummary/profitSummary";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "日分润汇总",
                clickToSelect:true,
                columns: [
                {
                    field: 'agentNum',
                    title: '服务商编号'
                },
                {
                    field: 'agentName',
                    title: '服务商名称'
                },
                {
                    field: 'localdate',
                    title: '交易日期'
                },
                {
                    field: 'channelName',
                    title: '销售经理'
                },
                {
                    field: 'amount',
                    title: '交易总金额'
                },
                {
                    field: 'count',
                    title: '交易总笔数'
                },
                {
                    field: 'merCharge',
                    title: '商户手续费总金额'
                },
                {
                    field: 'charge',
                    title: '手续费总金额'
                },
                {
                    field: 'chargeProfit',
                    title: '商户手续费分润'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>